package com.hup.minicontroller.common.model.dto;

import com.hup.minicontroller.common.bluetooth.model.BtLoginResponsePacket;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 与LoginRequest不一样, LoginResponse有failure方法,需要被实例化,所以不能定义成接口,所以只能有两个相同的类LoginResponse;
 *
 * @author hugan
 * @date 2021/5/17
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BtLoginResponse extends BtLoginResponsePacket {
    private String serverName;

    private ControlConfigDto controlConfig;

    public BtLoginResponse(String serverName, ControlConfigDto controlConfig) {
        this.serverName = serverName;
        this.controlConfig = controlConfig;
    }
}
